package top.jiachunlei.builder;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/6 20:49
 */
public class ConcreteBuilder1 extends Builder
{
    private Product product = new Product();
    @Override
    public void buildPartA()
    {
        product.add("部件A");
    }

    @Override
    public void buildPartB()
    {
        product.add("部件B");
    }

    @Override
    public Product getResult()
    {
        return product;
    }
}
